package com.mt.fpb.utils;

import java.util.Locale;
import java.util.Random;

/**
 * @author yu
 * @date 2021年09月27日 14:18
 */
public class KeyUtil {

    public static String keyUtils(){

        String str ="0123456789";
        StringBuilder builder = new StringBuilder(4);
        for(int i=0;i<4;i++){
            char ch = str.charAt(new Random().nextInt(str.length()));
            builder.append(ch);
        }
        String key = builder.toString().toLowerCase();
        return key;
    }

}
